package com.ttbj.waybill.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ttbj.product.bean.dto.WaybillDto;
import com.ttbj.waybill.po.Waybill;

public interface WaybillMapper {
    int deleteByPrimaryKey(Long waybillId);

    int insertSelective(Waybill record);

    Waybill selectByPrimaryKey(Long waybillId);

    int updateByPrimaryKeySelective(Waybill record);
    
    List<WaybillDto> allWaybill(@Param("orderId")Long orderId); //获取所有的货运单

	WaybillDto getWayBill(WaybillDto waybill);   //获取单个订单

	Long currentWaybill(@Param("driverId") Long driverId); // 司机当前有无执行状态订单号

	Integer stateNumDay(@Param("driverId")Long driverid,  @Param("state")Integer state); //一天某个状态的数量，如拒单的数量，成功单的数量
	

}